<template>
    <!--    飘窗-->
    <div class="pc-nav">
        <ul>
            <li v-for="item in indexNav" @click="indexnavToPage(item.webUrl)" class="title_nav">{{item.title}}</li>
        </ul>
    </div>
</template>

<script>
import request from "../utils/request";

export default {
    name: "index_nav_fixed",
    data(){
        return{
            indexNav: []
        }
    },
    created() {
        this.getIndexnav()
    },
    methods:{
        getIndexnav(){
            request({
                url: '/business/getCategoriesByPosition/3',
                method: 'get'
            }).then((res) => {
                this.indexNav = res.data.data
            })
        },
        indexnavToPage(url){
            window.open(url,'_blank')
        }
    }

}
</script>

<style scoped>
.title_nav{
    color: #f50000;
    cursor: pointer;
}
</style>
